-- GENERATED SPELL FOR [Thrallmar Peon] --


function spell0_16591(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(19643,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16591', 5294, 1)
end

function spell1_16591(pUnit, Event) --@Snap Kick,n/a--
pUnit:FullCastSpellOnTarget(15618,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16591', 2268, 1)
end

function Sorts_16591(pUnit, Event)
local choix_sorts_16591 = math.random(0, 1)
if choix_sorts_16591 == 0 then
pUnit:RegisterEvent('spell0_16591', 1, 1)
end
if choix_sorts_16591 == 1 then
pUnit:RegisterEvent('spell1_16591', 1, 1)
end
end

function mob16591_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16591', math.random(1500, 3000), 1)
end

function mob16591_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16591_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16591_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16591, 1, 'mob16591_Action')
RegisterUnitEvent(16591, 2, 'mob16591_Leave')
RegisterUnitEvent(16591, 3, 'mob16591_Kill')
RegisterUnitEvent(16591, 4, 'mob16591_Die')
